package net.lab1024.sa.admin.module.crawler.dao;

import java.util.List;
import net.lab1024.sa.admin.module.crawler.domain.entity.ShopCopyHisEntity;
import net.lab1024.sa.admin.module.crawler.domain.form.ShopCopyHisQueryForm;
import net.lab1024.sa.admin.module.crawler.domain.vo.ShopCopyHisVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 复制记录 Dao
 *
 * @Author  w
 * @Date 2025-03-29 06:03:19
 * @Copyright  w
 */

@Mapper
public interface ShopCopyHisDao extends BaseMapper<ShopCopyHisEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<ShopCopyHisVO> queryPage(Page page, @Param("queryForm") ShopCopyHisQueryForm queryForm);

    /**
     * 更新删除状态
     */
    long updateDeleted(@Param("id") String id, @Param("deletedFlag") boolean deletedFlag);

    /**
     * 批量更新删除状态
     */
    void batchUpdateDeleted(@Param("idList") List<String> idList, @Param("deletedFlag") boolean deletedFlag);

}
